<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>
<body>
	
</body>
<script>
	//1创建异步对象
	
	var xhr =new XMLHttpRequest();
	//2创建请求
	xhr.open(post,"http://127.0.0.1:8080/login")
	//3发送请求
	xhr.send(null)
	//4绑定监听
	xhr.onreadystatechange=function(){
		if(xhr.readyState==4 && xhr.status==200){
			var result =xhr.responseText;
		}
	}

</script>
</html>